import request from '@/utils/request'

/**
 * 登录操作
 */
export const login = ({ username, password }) => {
  return request.post('/auth/login', {
    username,
    password
  })
}

/**
 * 获取用户信息
 */
export const getUser = () => {
  return request.get('/auth/currentUser')
}
